﻿<Window x:Class="Clancy.Ui.Views.VideoSourceSelectionWindow"
        x:Name="VideoSourceSelection"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Title="Select video source" Height="106" Width="300" WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow" ShowInTaskbar="False" Topmost="True">
    <Grid>
        <DockPanel>
            <ComboBox DockPanel.Dock="Top" Name="CbVideoSource" ItemsSource="{Binding AvailableVideoInputs}" SelectedItem="{Binding SelectedItem}">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Name}" />
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
            <DockPanel Visibility="{Binding AdditionalConfigurationViewState}" DockPanel.Dock="Top" LastChildFill="True">
                <Label Content="Additional config:" DockPanel.Dock="Left" />
                <TextBox Name ="TbAdditionalInfo" Text="{Binding AdditionalConfiguration}" />
            </DockPanel>
            <DockPanel LastChildFill="False">
                <Button Name="BuOk" Content="Ok" DockPanel.Dock="Right" Width="80" Command="{Binding CmdOk}" CommandParameter="{Binding ElementName=VideoSourceSelection}" />
                <Button Name="BuCancel" Content="cancel" DockPanel.Dock="Right"  Width="80" Command="{Binding CmdCancel}" CommandParameter="{Binding ElementName=VideoSourceSelection}" />
            </DockPanel>
        </DockPanel>
    </Grid>
</Window>